package com.iooiee.builder_pattern;

import com.iooiee.builder_pattern.builder.AbstractActorBuilder;
import com.iooiee.builder_pattern.utils.XMLUtil;

public class ClientRun {
    public static void main(String[] args) {

        //针对抽象建造者编程，反射生成具体建造者对象
        AbstractActorBuilder aab = (AbstractActorBuilder) XMLUtil.getBean();
        Actor actor = aab.construct();
        // 通过指挥者创建完整的建造者对象
        String type = actor.getType();
        System.out.println(type+"的外观。。。。");
    }
}
